//
//  TMMerchantCollectCell.m
//  国学商家管理
//
//  Created by Tao Li on 2018/6/29.
//  Copyright © 2018年 mac. All rights reserved.
//

#import "TMMerchantCollectCell.h"
#import "TMCollectionModel.h"
@implementation TMMerchantCollectCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.merchantIcon.contentMode = UIViewContentModeScaleAspectFill;
    self.merchantIcon.clipsToBounds = YES;
}
-(void)setModel:(TMCollectionModel *)model{
    _model = model;
    [self.merchantIcon sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithBaseUrl:model.userimage]] placeholderImage:kPlaceholder];
    self.merchantName.text = model.username;
}
//-(void)setCourseModel:(TMCollectionModel *)courseModel{
//    _courseModel = courseModel;
//    [self.merchantIcon sd_setImageWithURL:[NSURL URLWithString:courseModel.pic] placeholderImage:kPlaceholder];
//    self.merchantName.text = courseModel.name;
//    self.
//}
@end
